package org.example.proxy.dynamicProxy.cglib;

import org.example.proxy.dynamicProxy.jdk.StudentJdk;
import org.example.proxy.dynamicProxy.jdk.StudentService;

public class TestCglib {
    public static void main(String[] args) {
        //创建被代理对象
        StudentJdk student = new StudentJdk();
        StudentService service = (StudentService) new CglibProxy().getProxy(student.getClass());
        service.sendMsg("xxqax");
    }
}
